# Import libraries
import numpy as np
import matplotlib.pyplot as plt

def stream_plot_2d():
    # Creating data set
    w = 3
    Y, X = np.mgrid[-w:w:100j, -w:w:100j]
    U = X - X + 1
    V = 2 * X ** 2 + 1
    speed = np.sqrt(U**2 + V**2)

    # Creating plot
    fig = plt.figure(figsize = (12, 7))
    plt.streamplot(X, Y, U, V, density = 1)

    # show plot
    plt.show()